Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Bugfix for missing comments #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

TGWesper
Copy link

When scraping multiple posts in a row, any post that is scraped after a post with paged comments had a malformed base_url, containing multiple "&after=" parameters. Because of this, apparently only the last page of comments was scraped for all subsequent posts.
Resetting the "after" variable at the start of the loop fixes this. In the for-loop for subcomments this was already implemented correctly.

When scraping multiple posts in a row, any post that is scraped after a post with paged comments had a malformed base_url, containing multiple "&after=" parameters. Because of this, its seems that only the last page of comments was scraped for all subsequent posts.
Resetting the "after" variable at the start of the loop fixes this. In the for-loop for subcomments this was already implemented correctly.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant